const mongoose = require("mongoose")

const dataSchema = new mongoose.Schema({
    name: {
        type: String,
        required: true,
    },
    address: {
        type: String,
        required: true
    },
    code:{
        type:String,
        required:false,
    },
    category:{
        type:String,
        required:true,
    }
})

//创建文档对象，进行相关操作
const dataModel = mongoose.model("links",dataSchema)

module.exports = dataModel